package com.r_z.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 功能
 * 类的描述:采购详情列表的实体类
 * @author 干净、
 * date 2022/06/06/14:46
 * @apiNote 1.0
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class PurchaseDetails {
    private int detailsId;//详情Id
    private double price;//单价
    private int quantity;//数量
    private double totalDetails;//总计价格
    private int goodId;//外键 来自商品列表
    private String goodName;//商品名称
    private String purchaseId;//外键 来自采购订单
    private double totalPrice;//订单总价格

    public PurchaseDetails(double price, int quantity, double totalDetails, int goodId, String purchaseId){
        this.price = price;
        this.quantity = quantity;
        this.totalDetails = totalDetails;
        this.goodId = goodId;
        this.purchaseId = purchaseId;
    }
}
